package com.cmd.entity;

public class Stock {

    private String name = "恒源股";

    private int quantity = 100;

    public void buy() {
        System.out.println("Stock [ Name: "+name+", Quantity: " + quantity +" ] bought");
    }

    public void sell() {
        System.out.println("Stock [ Name: "+name+", Quantity: " + quantity +" ] sold");
    }

}
